package com.luoran.consumer.controller;



import com.alibaba.dubbo.config.annotation.Reference;
import com.luoran.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController{

@Reference(version = "1.0.0")
private TestService testService;

    @RequestMapping
    public String add(){
        testService.add();
        return "add";
    }

    @RequestMapping("/del")
    public String del(){
        testService.del();
        return "del";
    }

    @RequestMapping("/upd")
    public String upd(){
        testService.upd();
        return "upd";
    }

    @RequestMapping("/sel")
    public String sel(){
        testService.sel();
        return "sel";
    }


}





